<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<script type="text/javascript">
	$(function(){
		getHandlerDatagrid();
	});
	
	//查询数据方法
	function getHandlerDatagrid()
	{
		$("#translaterTab").datagrid({
			url : '${pageContext.request.contextPath}/problemmgr/problemAction!showHandler.action',
			queryParams:serializeObject($('#handler_form')),
			fit:true,
			border:true,
			fitColumns:true,
			pagination:true,
			striped:true,
			pageList:[10,20,30],
			rownumbers:true,
			singleSelect:false,
			pagePosition:'bottom',
			autoRowHeight:true,
			columns:[[  {field:'userid',title:'用户编码',width:60,align:'center',sortable:true},						
						{field:'username',title:'用户名',width:80,align:'center'},
						{field:'dsafd',title:'操作',width:40,align:'center',formatter:function(value,rowData,rowIndex){
							return '<input type="radio" onclick="selectHandler(\''+rowData.userid+'\')" />';
							
						}}
						
					]]
		});
	}
	
	function selectHandler(userId){
		$("#handler_trans").val(userId);
		$("#translaterClose").dialog('destroy');
	}
	</script>

<form id="handler_form" method="post">  
	 <div style="height:180px";>  
		<table id="translaterTab" ></table>	
	</div>
</form>
